<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script >
export default {
  name: 'App',
};
const debounce = (fn, delay) => {
  let timer
   return (...args) => {
     if (timer) {
       clearTimeout(timer)
     }
     timer = setTimeout(() => {
       fn(...args)
     }, delay)
   }
}
  
const _ResizeObserver = window.ResizeObserver;
window.ResizeObserver = class ResizeObserver extends _ResizeObserver{
   constructor(callback) {
     callback = debounce(callback, 200);
     super(callback);
   }
}
</script>

<style>
#app{
  width: 100%;
  height: 100%;
  background-color: rgb(242,243,245);
}
*{
  margin: 0;
  padding: 0;
}

</style>
